<html>
<head>
<link href="css/style.css" rel="stylesheet"/>
<title>LiveResults - orienteeringresults online</title>
</head>
<body>
<div id="main">
<div id="main-topnav">
<h1>LiveResults - orienteeringresults online</h1>
<ul>
<li><a class="selected" href="/">Home</a></li>
<li><a href="/CreateNew">Create Competition</a></li>
<li><a href="/Developer">For Developers</a></li>
<li><a href="/About">About</a></li>
</ul>
</div>
<div id="main-home">
<div id="login">
<b>Are you an organizer?</b><br/>
Login to edit you existing competitions
<form action="Login" method="POST">
<b>Email:</b><br/>
<input type="text" name="email"/>
<b>Password:</b><br/>
<input type="password" name="password"/>
<br/>
<input type="submit" value="Login"/>
</form>
<b>Or</b> <a href="/CreateNew">Create new competition</a>
</div>
<p>
Welcome to orienteeringresults online, please click on the competition you want to follow. These results are not to be used as official, for official results please se the organizers own page.
</p>
<p><span style="font-size: 170%; font-weight: bold; padding-top: 20px;">Competitions live today</span><br/><br/>
<table class="ae-table" id="ae-trust-status-table">
<thead>
<tr><th width="100">Date</th><th>Competition</th><th>Organizer</th><th></th></tr>
</thead>
<tbody>
 {% if curent  %}
 {% for comp in curent %}
        <tr><td>{{comp.date}}</td><td><a href="/View/{{comp.key}}">{{ comp.name }}</a></td><td>{{comp.organizer}}</td>
<td>
<img src="/images/{{comp.country}}.png"/>
</td>
</tr>
    {% endfor %}

{% else %}
<tr><th colspan="4">No competitions today</th></tr>
{%endif%}
</tbody>
</table>
</p>
<p><span style="font-size: 170%; font-weight: bold; padding-top: 20px;">Upcoming</span><br/><br/>
<table class="ae-table" id="ae-trust-status-table">
<thead>
<tr><th width="100">Date</th><th>Competition</th><th>Organizer</th><th></th></tr>
</thead>
<tbody>
 {% if upcoming %}
 {% for comp in upcoming %}
        <tr><td>{{comp.date}}</td><td><a href="/View/{{comp.key}}">{{ comp.name }}</a></td><td>{{comp.organizer}}</td>
<td>
<img src="/images/{{comp.country}}.png"/>
</td>
</tr>
    {% endfor %}
{% else %}
<tr><th colspan="4">No upcoming competitions</th></tr>
{%endif%}
</tbody>
</table>
</p>

<p><span style="font-size: 170%; font-weight: bold; padding-top: 20px;">Archive</span><br/><br/>
<table class="ae-table" id="ae-trust-status-table">
<thead>
<tr><th width="100">Date</th><th>Competition</th><th>Organizer</th><th></th></tr>
</thead>
<tbody>
{% if archive %}
 {% for comp in archive %}
        <tr><td>{{comp.date}}</td><td><a href="/View/{{comp.key}}">{{ comp.name }}</a></td><td>{{comp.organizer}}</td>
<td>
<img src="/images/{{comp.country}}.png"/>
</td>
</tr>
    {% endfor %}
{% else %}
<tr><th colspan="4">No competitions in archive</th></tr>
{%endif%}
</tbody>
</table>
</p>

</div>
</div>
</div>
</body>
</html>
